package org.wlw.user;

public class TestUser {
	public static void main(String[] args) {
		UserManager um = new UserManager(10);
		um.add(new User("ldh","123","刘德华",66));
		um.add(new User("zxy","123","张学友",65));
		um.add(new User("ldh","123","aa",33));
		um.add(new User("xtx","111","谢天笑",54));
		um.add(new User("dw","232","窦唯",44));
		um.add(new User("zc","323","张楚",33));
		um.add(4,new User("wf","333","汪峰",33));
		
//		User tu = um.load("zxy");
//		tu.setAge(35);
//		um.update(tu);
//		um.delete("xtx");
		System.out.println("------------------------------------");
		um.find();
		System.out.println("=----------------------------------");
		User lu = um.login("ldh","123");
		if(lu!=null) {
			System.out.println("欢迎"+lu.getNickname()+"使用我们的系统!");
		}
	}
}
